package org.boge.wxnovel.dao;

import org.apache.ibatis.annotations.Mapper;
import org.boge.wxnovel.bean.Genres;
import org.boge.wxnovel.bean.NovelDetail;

import java.util.List;

@Mapper
public interface NovelDetailDao {
    public NovelDetail findById(Integer id);

    public List<NovelDetail> findByNovelName(String name);

    public List<NovelDetail> findByNovelName(String name, Integer pageNum, Integer pageSize);

    public List<NovelDetail> findByDescription(String description);

    public List<NovelDetail> findByDescription(String description, Integer pageNum, Integer pageSize);

    public List<NovelDetail> findByGenres(Genres genres, Integer pageNum, Integer pageSize);

    public List<NovelDetail> findByGenres(Genres genres);

    public List<NovelDetail> findByGenres(Integer id, Integer pageNum, Integer pageSize);

    public List<NovelDetail> findByGenres(Integer id);

    public List<NovelDetail> findAll(Integer pageSize,Integer pageNum);

    public List<NovelDetail> findAll();
}
